{% comment %}
<!--
  Copyright (C) 2008 ZHENG Zhong <http://www.zhengzhong.net/>

  Created on 2009-04-30.
  $Id$
-->
{% endcomment %}

<div id="overview" class="ajax_box">

  <!-- main _____________________________________________________________________________________-->
  
  <div class="main">
  
    <div class="title">
      <h1>
        In <a href="{{webapp_}}/movie/{{scene.parent.key.id}}/">{{movie.name|escape}}</a>,
        from {{scene.start_time}} minutes ({{scene.seconds}} seconds)
      </h1>
    </div><!--/.title-->
    
    <div class="submitter">
      Added on {{scene.submit_date|date:"Y-m-d"}} by
      <a href="{{webapp_}}/user/{{scene.submitter.user_id}}/">
        {{scene.submitter.nickname|escape}}
      </a>
    </div><!--/.submitter-->
    
    {% include "hottywood/ajax/ajax_error.html" %}
  
  </div><!--/.main-->
  
  <!-- container ________________________________________________________________________________-->
  
  <div class="container">
  
    <!-- poster _________________________________________________________________________________-->
    
    <div class="poster">
      {% if scene.parent.has_poster %}
        <img src="{{webapp_}}/movie/{{scene.parent.key.id}}/poster/"
             alt="{{scene.parent.name|escape}}"
             title="{{scene.parent.name|escape}}"/>
      {% else %}
        <img src="{{static_}}/images/movie_no_poster.jpg"
             alt="{{scene.parent.name|escape}} (no poster)"
             title="{{scene.parent.name|escape}} (no poster)"/>
      {% endif %}
    </div><!--/.poster-->
    
    <!-- information ____________________________________________________________________________-->
    
    <div class="information">
    
      <!-- view _________________________________________________________________________________-->
      
      <div class="view">
      
        {% include "hottywood/include/scene_description.html" %}
        {% include "hottywood/include/scene_involved.html" %}
        {% include "hottywood/include/scene_visibility.html" %}
        {% include "hottywood/include/scene_votes.html" %}
      
        {% if scene.is_editable or is_admin_ %}
          <div class="toggle_link">
            <a href="javascript:void(0);" onclick="toggleBox('#overview');">
              [edit scene information]
            </a>
          </div>
        {% endif %}
      
      </div><!--/.view-->
    
      <!-- edit ___________________________________________________________________________________-->
      
      {% if scene.is_editable or is_admin_ %}
      
        <div class="edit hidden">
        
          <form id="edit_basic_info_form" class="small form" action="." method="POST"
                onsubmit="return submitAjaxForm('#overview', '#edit_basic_info_form');">
            <input type="hidden" name="ajax_box" value="overview"/>
            <table>
              <tbody>
                <tr>
                  <th style="width:1%;"><span class="nowrap">Description :</span></th>
                  <td><textarea name="description">{{scene.description|default:""|escape}}</textarea></td>
                </tr>
                <tr>
                  <th style="width:1%;"><span class="nowrap">Video URL :</span></th>
                  <td><input type="text" name="video_url" value='{{scene.video_url|default:"http://"|escape}}'/></td>
                </tr>
                <tr>
                  <th style="width:1%;"><span class="nowrap">Actress :</span></th>
                  <td><input type="text" name="actress" value='{{scene.actress|default:""|escape}}'/></td>
                </tr>
                <tr>
                  <th style="width:1%;"><span class="nowrap">Actor :</span></th>
                  <td><input type="text" name="actor" value='{{scene.actor|default:""|escape}}'/></td>
                </tr>
                <tr>
                  <th style="width:1%;"><span class="nowrap">Visibility :</span></th>
                  <td>
                  
                    {% if scene.breast %}
                      <input type="checkbox" name="breast" value="true" checked="checked"/>
                    {% else %}
                      <input type="checkbox" name="breast" value="true"/>
                    {% endif %}
                    Breast is visible.<br/>
                    
                    {% if scene.hips %}
                      <input type="checkbox" name="hips" value="true" checked="checked"/>
                    {% else %}
                      <input type="checkbox" name="hips" value="true"/>
                    {% endif %}
                    Hips are visible.<br/>
                    
                    {% if scene.legs %}
                      <input type="checkbox" name="legs" value="true" checked="checked"/>
                    {% else %}
                      <input type="checkbox" name="legs" value="true"/>
                    {% endif %}
                    Legs are visible.<br/>
                  
                  </td>
                </tr>
                <tr>
                  <th style="width:1%;"></th>
                  <td>
                    <input class="button" type="submit" value="Update"/>
                    <input class="button" type="button" onclick="toggleBox('#overview');" value="Cancel"/>
                    <span class="ajax_indicator hidden">
                      <img src="{{static_}}/images/ajax_indicator.gif" alt="AJAX Indicator"/>
                    </span>
                  </td>
                </tr>
              </tbody>
            </table>
          </form><!--/#edit_basic_info_form-->
        
        </div><!--/.edit-->
      
      {% endif %}{# scene.is_editable or is_admin_ #}
    
    </div><!--/.information-->
    
    <!-- clear __________________________________________________________________________________-->
    
    <div class="clear"></div>
  
  </div><!--/.container-->
  
</div><!--/#overview-->







